package ysq.xyg.shop.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.shop.model.po.ShopOrder;
import ysq.xyg.shop.model.vo.ShopOrderVo;
import ysq.xyg.sys.model.po.SysUser;

import java.util.List;

/**
 * 商城模块-订单生成表service接口
 *
 * @author congcong tao
 * @date 2019-5-29 16:41:51
 */
public interface ShopOrderService extends BaseService<ShopOrder> {
    /**
     * 分页查询
     *
     * @param shopOrderVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-29 16:41:51
     */
    ReturnEntity page(ShopOrderVo shopOrderVo, int pageSize, int pageNum);

    /**
     * 分页查询
     * @param shopOrderVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/5/31 15:14
     */
    ReturnEntity pageLeft(ShopOrderVo shopOrderVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param shopOrderVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-29 16:41:51
     */
    ReturnEntity addOrUpdate(ShopOrderVo shopOrderVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-29 16:41:51
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param shopOrderVo 对象
     * @return List<ShopOrder> ShopOrder集合
     * @author congcong tao
     * @date 2019-5-29 16:41:51
     */
    List<ShopOrder> acceptList(ShopOrderVo shopOrderVo);

    Double selectAllCount(ShopOrderVo shopOrderVo);

    Double selectAllCountByMemberId(ShopOrderVo shopOrderVo);
}
